package com.ovidiojf.geneticAlgorithm;

import java.util.Comparator;

import com.ovidiojf.timeTable.Table;

public class TableComparator implements Comparator<Table>{

	@Override
	public int compare(Table a, Table b) {
		return a.getFitness() < b.getFitness() ? -1 : 
			  (a.getFitness() > b.getFitness() ? +1 : 
			   0);
	}

}
